﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APP.DTO.Const
{
    public struct APICode
    {
        /// <summary>
        /// 成功
        /// </summary>
        public const int SuccessCode = 200;
        /// <summary>
        /// 失败
        /// </summary>
        public const int FailCode = 0;
        /// <summary>
        /// 业务逻辑错误
        /// </summary>
        public const int BussinessFailCode = 400;
        /// <summary>
        /// 未授权请求
        /// </summary>
        public const int AuthorizationFailCode = 401;
        /// <summary>
        /// 服务未启动
        /// </summary>
        public const int ServiceFailCode = 402;
        /// <summary>
        /// 请求参数和服务器记录不匹配
        /// </summary>
        public const int RequestFailCode = 403;
        /// <summary>
        /// 请求参数错误
        /// </summary>
        public const int ParameterFailCode = 405;
        /// <summary>
        /// 退出应用程序重新登录
        /// </summary>
        public const int RestAppStatusCode = 205;

        /// <summary>
        /// 不存在
        /// </summary>
        public const int NoExistsCode = 404;
    }
}
